package com.zzyl.mapper;

import com.zzyl.base.ResponseResult;
import com.zzyl.entity.Floor;
import com.zzyl.vo.FloorVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FloorMapper {

    int insert(Floor floor);

    int deleteById(Long id);

    int updateById(Floor floor);

    Floor selectById(Long id);

    List<FloorVo> selectAll();

    List<FloorVo> selectAllRoomAndBed();

    List<FloorVo> selectAllByNur();
    /**
     * 根据床位状态查询获取所有楼层数据
     *
     * @param status 床位状态{@link com.zzyl.enums.BedStatusEnum}
     * @return 所有楼层数据
     */
    List<FloorVo> getRoomAndBedByBedStatus(@Param("status") Integer status);


    /**
     * 查找绑定设备的楼层id
     * @return
     */
    List<FloorVo> selectWithDevice();
}
